package entity

type AiConsult struct {
	Id               int64  `gorm:"column:id;primary_key" json:"id"`
	UserId           string `gorm:"column:user_id;type:varchar(255);not null" json:"user_id"`
	Level            int    `gorm:"column:level;type:integer;not null" json:"level"`
	Module           int    `gorm:"column:module;type:integer;not null" json:"module"`
	Content          string `gorm:"column:content;type:varchar(255);not null" json:"content"`
	ExtraContent     string `gorm:"column:extra_content;type:varchar(255);not null" json:"extra_content"`
	UserFlag         int    `gorm:"column:user_flag;type:integer;not null" json:"user_flag"`
	LeaveMessage     string `gorm:"column:leave_message;type:varchar(255);not null" json:"leave_message"`
	LeaveMessageRsp  string `gorm:"column:leave_message_rsp;type:varchar(255);not null" json:"leave_message_rsp"`
	LeaveMessageFlag string `gorm:"column:leave_message_flag;type:varchar(255);not null" json:"leave_message_flag"`
	EvalToSupervisor int    `gorm:"column:eval_to_supervisor;type:integer;not null" json:"eval_to_supervisor"`
	Title            string `gorm:"column:title;type:varchar(64);not null" json:"title"`
	Scores           int    `gorm:"column:scores;type:integer;not null" json:"scores"`
	EvalTime         int64  `gorm:"column:eval_time;type:bigint;not null" json:"eval_time"`
	SupervisorId     string `gorm:"column:supervisor_id;type:varchar(255);not null" json:"supervisor_id"`
	SupervisorName   string `gorm:"column:supervisor_name;type:varchar(255);not null" json:"supervisor_name"`
	EvalContent      string `gorm:"column:eval_content;type:varchar(255);not null" json:"eval_content"`
	QuestionId       int64  `gorm:"column:question_id;type:bigint;not null" json:"question_id"`
	PayStatus        int    `gorm:"column:pay_status;type:integer;not null" json:"pay_status"`
	ReferenceAnswer  string `gorm:"column:reference_answer;type:varchar(255);not null" json:"reference_answer"`
	QuestionScore    int    `gorm:"column:question_score;type:integer;not null" json:"question_score"`
	CreatedAt        int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt        int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (a *AiConsult) TableName() string {
	return "ai_consult"
}
